// Temporal
.temporal-edit-title-modal-wrapper {
    .close {
        display: none;
    }

    .DebouncedInput {
        border: var(--border);
        padding: 4px;
        border-radius: 4px;
    }
}

.DataDoc {
    position: relative;
    min-height: 100%;
    width: 100%;
    display: flex;

    .DataDocRightSidebar {
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 9;
        flex: 1;
    }

    .DataDocLeftSidebar {
        flex: 1;
    }

    .header-hero {
        border-bottom: var(--border);
    }

    .data-doc-content-container {
        flex: 0 1 var(--max-width);
        padding: 36px 8px 36px 16px;

        .data-doc-header {
            padding: 0px 12px 8px;
            color: var(--text-light);

            .data-doc-header-top {
                align-items: end;
                .data-doc-header-users {
                    .ImpressionWidget {
                        margin-right: 4px;
                    }
                }
            }

            .IconButton,
            .ImpressionWidget {
                margin-left: 16px;
            }
            .favorite-icon-button {
                &.favorite-icon-button-favorited {
                    color: var(--color-yellow);
                    .Icon {
                        svg {
                            fill: var(--color-yellow);
                        }
                    }

                    &:hover,
                    &.active {
                        .Icon {
                            color: var(--color-yellow-light);
                            svg {
                                fill: var(--color-yellow-light);
                            }
                        }
                    }
                }
            }
            .data-doc-header-title {
                position: relative;
                display: flex;
                align-items: center;

                .IconButton {
                    position: absolute;
                    left: 0px;
                    margin-left: 4px;
                    padding-left: 0px;
                    color: var(--icon);
                    display: flex;
                    align-items: center;
                }

                .data-doc-title {
                    font-weight: var(--bold-font);
                    flex: 1;
                }

                .with-icon {
                    padding-left: 40px;
                }

                &:hover {
                    .IconButton {
                        color: var(--color-accent);
                    }
                }
            }
        }

        .data-doc-container {
            .data-doc-cell-container-pair {
                position: relative;

                &.data-doc-cell-container-pair-final {
                    min-height: 48px;
                }

                .data-doc-cell {
                    border-radius: var(--border-radius);
                    margin: 48px 16px;
                }

                .data-doc-cell-users {
                    top: 44px;
                    left: -16px;
                    position: absolute;

                    .UserAvatar {
                        margin-bottom: -8px;
                    }
                }

                .data-doc-cell-divider-container {
                    box-sizing: border-box;
                    height: 0px;

                    .DataDocUIGuide {
                        margin-top: 12px;
                    }

                    .block-crud-buttons {
                        // Use opacity to prevent layout shift
                        opacity: 0;

                        // Physically remove the cell header buttons to prevent
                        // them from stealing hover events from the footer buttons
                        &.is-header {
                            display: none;
                        }

                        height: 32px;
                        top: -17px;
                        position: relative;
                        text-align: center;
                        margin: 0px 8px;

                        .block-left-buttons-wrapper {
                            position: absolute;
                            left: 4px;
                            .Dropdown {
                                .Dropdown-trigger {
                                    display: flex;
                                }
                            }
                        }

                        .block-right-buttons-wrapper {
                            position: absolute;
                            right: 4px;
                        }
                        .block-crud-button {
                            margin: 0;
                            & + .block-crud-button {
                                margin-left: 8px;
                            }
                        }
                    }
                }

                .DataDocQueryCell-more-button,
                .QueryRunButton,
                .additional-dropdown-button,
                .add-snippet-wrapper,
                .query-editor-float-buttons-wrapper,
                .python-cell-controls,
                .chart-cell-controls {
                    opacity: 0;
                    transition: opacity 0.2s ease-out;
                }

                &:hover {
                    .data-doc-cell-divider-container {
                        .block-crud-buttons {
                            display: flex;
                            opacity: 1;
                        }
                    }

                    .DataDocQueryCell-more-button,
                    .QueryRunButton,
                    .additional-dropdown-button,
                    .add-snippet-wrapper,
                    .query-editor-float-buttons-wrapper,
                    .python-cell-controls,
                    .chart-cell-controls {
                        opacity: 1;
                    }

                    .AICommandInput {
                        .stars-icon {
                            color: var(--color-accent);
                        }

                        .mention-input {
                            ::placeholder {
                                background: linear-gradient(
                                    45deg,
                                    rgba(255, 0, 0, 0.5) 10%,
                                    rgba(128, 0, 128, 0.5) 20%,
                                    rgba(0, 0, 255, 0.5) 30%
                                );
                                -webkit-background-clip: text;
                                background-clip: text;
                                -webkit-text-fill-color: transparent;
                                text-fill-color: transparent;
                            }
                        }
                    }

                    .QueryCellTitle {
                        .IconButton {
                            color: var(--color-accent);
                        }
                    }
                }
            }
        }
    }

    .datadoc-loading {
        width: 480px;
        height: 100vh;
        position: relative;
        text-align: center;
    }

    .SearchAndReplaceBar {
        position: fixed;
        right: 60px;
        z-index: 40;
    }
}
